{% extends "base.html" %}

{% block title %}{{ title }} - {{ current_site.name }}{% endblock %}

{% block content %}
    <div class="div_alpha14">
    <h2 class="h2_alpha02">{{ title }}</h2>
    <div class="div_alpha14_inner">
    
    <ul class="ul03">
    {% for recipe in page.object_list %}
        <li>
        <strong><a href="{% url recipes-show recipe_id=recipe.id %}">{{ recipe.name }}</a></strong>
        <p class="p05">{% if recipe.photo %}<img width=98" src="{{ recipe.photo.url }}" alt="{{ recipe.name }}" /></a>{% endif %}</p>
        <p class="p05">by <a href="/">{{ recipe.user.first_name }}</a> さん<br />コメント:{{ recipe.num_moderated_comments }}<br />投票された回数:{{ recipe.score }}</p>
        <p class="p05">
        {% if recipe.is_awarded and recipe.contest.is_really_finished %}
            <img src="/site_media/images/common/icon_awardedstatus.jpg" />
        {% endif %}
        {{ recipe.introduction }}</p>
        <p class="p05">材料: {% for name, quantity in recipe.decode_ingredients %}{{ name }} {% endfor %}</p>
        </li>
    {% endfor %}
    </ul>
    
    </div>
    </div>
    
    {% include paginator.html %}
    
{% endblock %}
